package Runde2;

import java.util.*;

public interface VOInt {
	
	/**
	 * Creates a new exam for the course.
	 * 
	 * @param owner Since only the owner can create new exams...
	 * @param pw ...he has to enter his password.
	 * @param examiner The examiner of this exam. The only person who can grade a student participating in the exam.
	 * @param date Date of the exam.
	 * @param lva The course the exam belongs to.
	 * @param max Maximum number of participants.
	 * @throws InsufficientPermissionsException If the owner can't identify himself via the password.
	 */
	public void createExam(String pw, Person examiner, GregorianCalendar date, int lva, int max) throws InsufficientPermissionsException;
	
	/**
	 * Getter-function for exams.
	 * 
	 * @param date The exact date the exam takes place.
	 * @return The specified exam.
	 */
	public Exam getExam(GregorianCalendar date) throws IncorrectDateException;
	
}